package cn.wolfcode.car.business.mapper;

import cn.wolfcode.car.business.domain.StockBillItem;
import cn.wolfcode.car.business.query.StockBillItemQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StockBillItemMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StockBillItem record);

    StockBillItem selectByPrimaryKey(Long id);

    List<StockBillItem> selectAll();

    int updateByPrimaryKey(StockBillItem record);

    List<StockBillItem> selectForList(StockBillItemQuery qo);

    List<StockBillItem> selectByBillId(Long id);

    void deleteByBillId(Long id);

    void changeState(@Param("id") Long id, @Param("state") boolean state);

    void updateBillId(Long billId);

    void updateAmounts(Long id, Integer amounts);

    void deleteByGoodsId(Long goodsId);
}